/**
 * 用户管理界面。
 * @author LinZongxue
 * @create_date 2011-12-26
 */
define(function(){
	var UserMainPanel = Ext.extend(Ext.Panel, {
		title: '用户管理',
		layout: 'border',
		initComponent: function(){
			UserMainPanel.superclass.initComponent.call(Ext.apply(this, {
				items: [
				    this.userPanel = cu.create('sys.user.UserGridPanel', {
				    	region: 'center'
				    }),
				    this.rolePanel = cu.create('sys.user.UserRolePanel', {
				    	region: 'south',
				    	collapseMode: 'mini'
				    })
				]
			}));
		},
		changeUser: function(user){
			this.rolePanel.changeUser(user);
		}
	});
	return UserMainPanel;
});